#!/bin/sh

procfile=/proc/acpi/acer/wireless
sysfile=/sys/devices/platform/acer_acpi/wireless
acerhkfile=/proc/driver/acerhk/wirelessled

if [ -r $procfile ]
then
	echo 0 > $procfile
else
	if [ -r $sysfile ]
	then
		echo 0 > $sysfile
	else
		if [ -r $acerhkfile ]
		then
			echo 0 > $acerhkfile
		else
			# something went wrong... maybe kernel module not loaded
			exit 2
		fi
	fi
fi